package com.springcloud.market.api.service;

public interface StockService {
    String getStockInfo();
    
    /**
     * 扣减库存
     * @param productId 商品ID
     * @param quantity 扣减数量
     * @return 扣减结果
     */
    String reduceStock(Long productId, Integer quantity);

    public void reduce(Integer productId);
}
